package com.bupt.liutong.admin.sch.form;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;

import com.bupt.liutong.admin.core.base.BaseForm;
import com.bupt.liutong.admin.core.base.Photo;
import com.bupt.liutong.admin.core.base.PhotoForm;
import com.bupt.liutong.admin.core.base.PhotosForm;
import com.bupt.liutong.admin.sch.dto.AlbumPhoto;

public class AlbumPhotoForm extends BaseForm implements PhotosForm, PhotoForm {

	private static final long serialVersionUID = 579133315182316215L;
	private Integer id;
	private Integer albumId;
	private String des;
	private String url;
	private String filePath;
	private Integer seq;
	private String thumbPath;
	private String thumbUrl;
	
	private String[] newPhotoDeses = new String[5];
	private FormFile[] newPhotoFiles = new FormFile[5];

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getAlbumId() {
		return albumId;
	}

	public void setAlbumId(Integer albumId) {
		this.albumId = albumId;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	/**
	 * Method validate
	 * 
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Method reset
	 * 
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	
	public Photo getNewPhoto(int i) {
		AlbumPhoto photo = new AlbumPhoto();
		photo.setAlbumId(albumId);
		photo.setDes(newPhotoDeses[i]);
		photo.setFile(newPhotoFiles[i]);
		return photo;
	}

	
	public String[] getNewPhotoDeses() {
		return newPhotoDeses;
	}

	
	public FormFile[] getNewPhotoFiles() {
		return newPhotoFiles;
	}

	
	public void setNewPhotoDeses(String[] newPhotoDeses) {
		this.newPhotoDeses = newPhotoDeses;
	}

	
	public void setNewPhotoFiles(FormFile[] newPhotoFiles) {
		this.newPhotoFiles = newPhotoFiles;
	}

	
	public Photo getPhoto(int i) {
		return null;
	}

	
	public String[] getPhotoDeses() {
		return null;
	}

	
	public Integer[] getPhotoIds() {
		return null;
	}

	
	public void setPhotoDeses(String[] photoDeses) {
		return;
	}

	
	public void setPhotoIds(Integer[] photoIds) {
		return;
	}

	
	public Integer[] getPhotoSeqs() {
		return null;
	}

	
	public void setPhotoSeqs(Integer[] photoSeqs) {
		return;
	}

	
	public String getThumbPath() {
		return thumbPath;
	}

	
	public void setThumbPath(String thumbPath) {
		this.thumbPath = thumbPath;
	}

	
	public String getThumbUrl() {
		return thumbUrl;
	}

	
	public void setThumbUrl(String thumbUrl) {
		this.thumbUrl = thumbUrl;
	}
}
